import java.util.regex.*;

public class BlankProcess
{
	public void bProcess(CodeLine codeLine)
	{
		codeLine.getCodeLineSpec().setComment(replaceBlank(codeLine.getCodeLineSpec().getComment()));
		codeLine.setCodeContent(replaceBlank(codeLine.getCodeContent()));
		codeLine.getCodeLineSpec().setLabelName(replaceBlank(codeLine.getCodeLineSpec().getLabelName()));
	}
	
	public String replaceBlank(String str)
  {
    Pattern p = Pattern.compile("^\\s*|\\s*$"); // set the matching regular expression
    Matcher m = p.matcher(str);
    String after = m.replaceAll("");   // replace 
 
    return after; 
  }
	
	
	
}